<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>用户列表</title>
    <!--<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />-->
    <!--<link rel="stylesheet" href="../mui/css/mui.min.css"/>-->
    <style>
        .container {
            position: relative;
        }
        table {
            width: 100%;
            font-size: 14px;
            text-align: center;
        }
        .search-query {
            margin-top: 10px;
            font-size: 14px;
            line-height: 55px;
        }
        .search-query input{
            width: 100px;
        }
        .search-query button {
            vertical-align: middle;
        }
        table thead {
            background: #dddddd;
        }
        table tbody tr:nth-child(even) {
            background: #eeeeee;
        }
        .mui-bg-primary {
            background: #8a6de9;
            color: #FFFFFF;
            border: none;
            outline: none;
            width: 60px;
            height: 20px;
            line-height: 20px;
            border-radius: 4px;
        }
        table tr {
            height: 30px;
            line-height: 30px;
        }
        .dialog {
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            right: 0;
            background: rgba(0,0,0,0.5);
            overflow: scroll;
            padding-bottom: 50px;
            display: none;
        }
        .dialog>div{
            width: 600px;
            margin: 50px auto 0;
            background: #FFFFFF;
            font-size: 14px;
            padding: 20px;
            box-sizing: border-box;
        }
        .dialog ul {
            list-style: none;
        }
        .dialog li {
            margin-bottom: 10px;
        }
        .dialog>div span {
            display: inline-block;
            width: 100px;
            height: 30px;
            line-height: 30px;
        }
        .dialog>div input {
            width: 300px;
            height: 30px;
            line-height: 30px;
            border: 1px solid #dddddd;
            border-radius: 4px;
            outline: none;
        }
        .dialog>div>div {
            text-align: center;
        }
        .dialog>div button {
            border: none;
            outline: none;
            background: #8a6de9;
            color: #ffffff;
            width: 100px;
            height: 40px;
            line-height: 40px;
            font-size: 14px;
        }
        .logout {
            color: #2d89e8;
            font-size: 14px;
            border: none;
            outline: none;
            background: transparent;
            float: right;
            cursor: pointer;
        }
    </style>
    <script src="../../mui/js/mui.min.js"></script>
</head>
<body>
    <div class="container">
        <!--<div>-->
            <!--<button class="logout" id="logout">退出</button>-->
        <!--</div>-->
        <!--<div class="search-query">-->
            <!--<span>用户名</span>-->
            <!--<input type="text" id="userName"/>-->
            <!--<span>年龄</span>-->
            <!--<input type="text" id="age"/>-->
            <!--<button type="button" class="btn-primary" id="searchBtn">搜索</button>-->
        <!--</div>-->
        <table>
            <thead>
                <tr>
                    <th>编号</th>
                    <th>兑换码</th>
                    <th>状态</th>
                    <th>添加时间</th>

                </tr>
            </thead>
            <tbody>
                <tr th:each="code,codeStat: ${list}">
                    <td th:text="${codeStat.index+1}"></td>
                    <td th:text="${code.redcode}"></td>
                    <td th:text="${code.status==false?'未使用':'已使用'}"></td>
                    <td th:text="${{code.createTime}}"></td>
                </tr>

            </tbody>
        </table>
    </div>
    <script src="../../js/userList.js"></script>
</body>
</html>